/**
 * 
 */
package mediasManagement;

import java.util.ArrayList;
import java.util.Calendar;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import exceptions.BadParametersException;
import exceptions.MediaExistsException;

/** 
 * @author virgil
 */
@Entity
@DiscriminatorValue("DVD")
public class Dvd extends Media {
	
		
		/**
		 * create a dvd with its issn and add one default exemplary
		 * @param title
		 * @param authors
		 * @param categories
		 * @param editionDate
		 * @param issn
		 * @param fabric
		 * @throws BadParametersException
		 * @throws MediaExistsException
		 */
	public Dvd(String title, ArrayList<String> authors,ArrayList<String> categories, Calendar editionDate,
			String issn, FabricCategory fabric) throws BadParametersException, MediaExistsException{
		super(title,authors,categories,editionDate,issn,"Dvd",fabric);

}
		/**
		 * create a dvd with its issn and add numberExemplaries exemplaries
		 * @param title
		 * @param authors
		 * @param categories
		 * @param editionDate
		 * @param isbn
		 * @param numberExemplaries
		 * @param fabric
		 * @throws BadParametersException
		 * @throws MediaExistsException
		 */
	public Dvd(String title, ArrayList<String> authors,ArrayList<String> categories, Calendar editionDate,
			String isbn,int numberExemplaries,FabricCategory fabric) throws BadParametersException, MediaExistsException{
		super(title,authors,categories,editionDate,isbn,"Dvd",numberExemplaries,fabric);

		
	}
	public Dvd(){
		
	}
}

